//
//  ViewController.m
//  PopoverDemo
//
//  Created by Academy on 1/7/13.
//  Copyright (c) 2013 MMAcademy. All rights reserved.
//

#import "ViewController.h"

@interface ViewController () <UIPopoverControllerDelegate>

@end

@implementation ViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    if ([segue isKindOfClass:[UIStoryboardPopoverSegue class]]) {
        ((UIStoryboardPopoverSegue*) segue).popoverController.delegate = self;
    }
}

- (void)popoverControllerDidDismissPopover:(UIPopoverController *)popoverController {
    NSLog(@"Dissmised");
}

@end
